package GaoYuXuan.Homework0715;

/**
 * @author 盖
 * @version 1.0
 * @since 2022-07-15 22:33:42
 */
public class ClassDemo1 {
    public static void main(String[] args) {
        String s1 = "asd";
        String s2 = "asd";
        System.out.println(s1 == s2);
        String s3 = new String("ASD");
        String s4 = new String("ASD");
        System.out.println(s3 == s4);
        System.out.println(s3 == s1);
        System.out.println(s4 == s2);
    }
}